package com.test.demo_01;

import com.alibaba.fastjson.JSON;
import com.test.entity.Student;
import com.test.service.StudentService;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

import java.util.List;

@SpringBootApplication(scanBasePackages = {"com.test.controller","com.test.service"})
@MapperScan(basePackages = {"com.test.mapper"})
public class Demo01Application {
	public static void main(String[] args) {

		SpringApplication.run(Demo01Application.class, args);
	}
	@Autowired
	StudentService studentService;

	/*public void run(String... strings) throws Exception {
		List<Student> sList = studentService.getStuList(p);
		System.out.println(JSON.toJSONString(sList));

		System.out.println();
	}*/
}
